Skip to content

chore: remove disk driver version#9809

Open
hccheng72 wants to merge 2 commits intoAzure:mainfrom
hccheng72:remove-disk-driver-version
Open

chore: remove disk driver version#9809
hccheng72 wants to merge 2 commits intoAzure:mainfrom
hccheng72:remove-disk-driver-version

Conversation

@hccheng72
Copy link
Copy Markdown

@hccheng72 hccheng72 commented Apr 21, 2026


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

az aks create --disk-driver-version
az aks update --disk-driver-version

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Copilot AI review requested due to automatic review settings April 21, 2026 20:33
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented Apr 21, 2026

❌Azure CLI Extensions Breaking Change Test
❌aks-preview
rule cmd_name rule_message suggest_message
1007 - ParaRemove aks create cmd aks create removed parameter disk_driver_version please add back parameter disk_driver_version for cmd aks create
1007 - ParaRemove aks update cmd aks update removed parameter disk_driver_version please add back parameter disk_driver_version for cmd aks update

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @hccheng72,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@github-actions
Copy link
Copy Markdown
Contributor

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Apr 21, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown
Contributor

CodeGen Tools Feedback Collection

Thank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the --disk-driver-version flag from the aks-preview extension’s az aks create / az aks update commands, including associated constants, parameter wiring, help text, and test coverage that exercised version selection.

Changes:

  • Removed disk_driver_version argument plumbing from command parameters and custom command entrypoints.
  • Simplified get_disk_driver() logic to only handle enable/disable flows (no version selection).
  • Updated tests and deleted scenario recordings tied to the removed flag; updated HISTORY.rst.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/aks-preview/azext_aks_preview/managed_cluster_decorator.py Removes disk_driver_version handling/validation from disk CSI driver profile generation.
src/aks-preview/azext_aks_preview/custom.py Removes disk_driver_version from aks_create / aks_update function signatures.
src/aks-preview/azext_aks_preview/_params.py Removes --disk-driver-version argument definition and related enum list/imports.
src/aks-preview/azext_aks_preview/_help.py Removes --disk-driver-version from command help entries.
src/aks-preview/azext_aks_preview/_consts.py Removes disk driver version constants (v1/v2).
src/aks-preview/azext_aks_preview/tests/latest/test_managed_cluster_decorator.py Removes unit test cases covering disk_driver_version behavior.
src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py Removes scenario tests/checks that depended on --disk-driver-version / disk driver version assertions.
src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_csi_driver_v2.yaml Deletes recording for removed scenario test.
src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_csi_driver_to_v2.yaml Deletes recording for removed scenario test.
src/aks-preview/HISTORY.rst Adds changelog entry under Pending for the flag removal.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

@hccheng72 hccheng72 force-pushed the remove-disk-driver-version branch from db39433 to d0cd20e Compare April 21, 2026 20:45
@FumingZhang
Copy link
Copy Markdown
Member

/azp run

+++++++
* `az aks nodepool update`: Support `--node-vm-size` to resize VM size of an existing VMSS-based agent pool (preview). Requires AFEC registration `Microsoft.ContainerService/AgentPoolVMSSResize`.

20.0.0b4
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change, please update the major version to 21, for example, use a version number such as 21.0.0b1.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AKS Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants